package com.guoshengdeu.door.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 
 * </p>
 *
 * @author yfly
 * @since 2021-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysManager对象", description="")
public class SysManager implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    @TableLogic
    private Integer id;

    @ApiModelProperty(value = "序号")
    private Integer managerId;

    @ApiModelProperty(value = "登录账号（2-20）")
//    @NotNull(message = "测试字符串不能为空")
    @Min(message="min 2",value=2)
    @Max(message="max 20",value=20)
    private String managerNum;


    @ApiModelProperty(value = "密码（6-20）")
    @Min(message="min 2",value=6)
    @Max(message="max 20",value=20)
    private String managerPwd;

    @ApiModelProperty(value = "状态，0：封禁，1：正常（默认正常）")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatetime;

    @ApiModelProperty(value = "是否删除（默认0：删除，1：存在）")
    private Integer isDelete;


}
